
<!--  Permet d'associer la touche Enter au boutton d'inscription -->
<script type="text/javascript">
document.onkeypress = function (e) {
	 var enterpressed = e? e.which == 13: window.event.keyCode == 13;
	 if (enterpressed ){
		 document.getElementById('inscription').click();
	 	return false;
	 }
	}
</script>

<form id="form_inscription">

	<span id="titre">Inscription</span><br>
    
    <select id="idMonde" name="idMonde">
    	<option value="" disabled selected style="display:none; text-align:center;">Sélectionner votre monde</option>
		<?php 
		$mondes=DAO::getAll("Monde");
		foreach ($mondes as $monde){
			echo Gui::select($monde);
		}
		?>
	</select><br>
		        
	<input type="text" id="nom" name="nom" required="required" placeholder="Saississez votre nom" maxlength="30" />

	<input type="text" id="prenom" name="prenom" required="required" placeholder="Saississez votre prénom" maxlength="30" />

	<input type="email" id="mail" name="mail" required="required" placeholder="Saississez votre adresse mail" maxlength="30" />
	
	<input type="text" id="login" name="login" required="required" placeholder="Saississez un login" maxlength="30" />

	<input type="password" id="password" name="password" required="required" placeholder="Mot de passe" maxlength="30" />

	<input type="password" id="conf_password" name="conf_password" disabled="disabled" required="required" placeholder="Confirmation Mot de passe" maxlength="30" />

	<input type="button" id="inscription" name="inscription" value="Inscription" />
	
	<a class="lienForm" id="lien_connexion" href="#">Déjà inscrit ? Connexion</a>
</form>
<script type="text/javascript" src="<?php echo $GLOBALS["siteUrl"]?>js/form.inscription.js"></script>
<div class="message"></div>